﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

using GameEngine;
using GameEngine.TileMap;
using GameEngine.Graphics.Light;
using GameEngine.Graphics;
using GameEngine.Help;

namespace GameEngine.GameStateManagment
{
    public class SinglePlayer : GameScreen
    {
        TileMap.TileMap Map;
        LightManager LM;


        public override void Init()
        {
            LM = new LightManager();
            Map = new TileMap.TileMap();
            Map.Init();
            // LM.Init(); --> Wird von Game1.cs aufgerufen
            GameObjektManager.Init();

            base.Init();
        }

        public override void LoadContent(ContentManager Content)
        {
            Map.LoadContent(Content);
            //Spieler.LoadContent(Content);
            //LM.LoadContent(Content);
            GameObjektManager.LoadContent(Content);

            base.LoadContent(Content);
        }

        public override void Update()
        {
            Map.Update();
            LM.Update();
            GameObjektManager.Update();

            base.Update();
        }

        public override void Draw()
        {
            //Map.Draw();ja
            LM.Draw(Map);
            GameObjektManager.Draw();

            base.Draw();
        }
    }
}